﻿using UnityEngine;
using System.Collections;

public class CameraController : MonoBehaviour {
	public GameObject player;
	Vector3 offset;
	//Vector3 distanse(1,1,1);
	// Use this for initialization
	void Start () {
		offset = transform.position - player.transform.position;
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	void LateUpdate(){
		transform.position = player.transform.position + offset + new Vector3(1,1,0);
	}
}
